import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入年龄");
        int age=sc.nextInt();
        System.out.println("请输入性别，0为男，1为女");
        int sex = sc.nextInt();
        System.out.println("请输入体重（kg）");
        float weight=sc.nextFloat();
        System.out.println("请输入身高（米）");
        Float height=sc.nextFloat();

        float bmi = weight / (height * height);

        if(bmi<18.5){
            System.out.println("体重过低");
        }
        else if(bmi>18.5 && bmi<25){
            System.out.println("体重正常");
        }
        else if( bmi>25&&bmi<30){
            System.out.println("体重超重");
        }else if(bmi>30){
            System.out.println("体重肥胖");
        }
    }
}
